<script setup>
    import { provide, ref } from 'vue';
    import MyParent from './components/MyParent.vue';
    const money = ref(100000000)
    // 祖先组件为后代提供数据
    provide("give", money)
</script>

<template>
  <div class="app">
    app组件
    <MyParent></MyParent>
  </div>
</template>

<style scoped>
  .app {
    width: 300px;
    padding: 15px 30px;
    background-color: hotpink;
  }
</style>